package com.gitee.base;

import org.springframework.beans.factory.annotation.Autowired;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 基类Service实现类
 * 
 * @author 赵炎
 * @version [V1.00, 2019年1月7日]
 * @since V1.00
 */
public class BaseServiceImpl<T extends BaseModel, M extends BaseMapper<T>> extends ServiceImpl<BaseMapper<T>, T> implements BaseService<T>
{
    @Autowired
    private M mapper;
    
    public IPage<T> selectPage(Page<T> page, QueryWrapper<T> wrapper)
    {
        return this.mapper.selectPage(page, wrapper);
    }
}
